import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getIMteam = {
  getIMteamList(params) {
    return axios.post(`${base.bd}/admin/im_team/lists`, qs.stringify(params));
  },
  getIMteamlock(params) {
    return axios.post(
      `${base.bd}/admin/im_team/team_lock`,
      qs.stringify(params)
    );
  },
  editIMteam(params) {
    return axios.post(
      `${base.bd}/admin/im_team/saveedit`,
      qs.stringify(params)
    );
  },

  getImTeamInfo(params) {
    return axios.post(`${base.bd}/admin/im_team/detail`, qs.stringify(params));
  },
  ImTeamUpdate(params) {
    return axios.post(
      `${base.bd}/admin/im_team/change_captain`,
      qs.stringify(params)
    );
  },
  getImTeampeople(params) {
    return axios.post(
      `${base.bd}/admin/im_team/team_people`,
      qs.stringify(params)
    );
  },

  // 群成员列表
  teamMateList(params) {
    return axios.post(
      `${base.bd}/admin/im_team/team_people`,
      qs.stringify(params)
    );
  },
  // 删除群成员
  teamMateDel(params) {
    return axios.post(
      `${base.bd}/admin/im_team/team_people_del`,
      qs.stringify(params)
    );
  },

  // 打开记录
  checkRecords(params) {
    return axios.post(
      `${base.bd}/admin/im_team/team_sign`,
      qs.stringify(params)
    );
  },
  // 打卡记录删除
  checkRecordsDel(params) {
    return axios.post(
      `${base.bd}/admin/product_review/team_sign_del`,
      qs.stringify(params)
    );
  },

  // 红包列表
  packetLists(params) {
    return axios.post(
      `${base.bd}/admin/im_team_red/lists`,
      qs.stringify(params)
    );
  },
  // 群聊红包详情
  packetDetail(params) {
    return axios.post(
      `${base.bd}/admin/im_team_red/team_sign`,
      qs.stringify(params)
    );
  },

  // 私聊红包
  prvitePackets(params) {
    return axios.post(`${base.bd}/admin/transfer/lists`, qs.stringify(params));
  },

  im_team_del(params) {
    return axios.post(`${base.bd}/admin/im_team/del`, qs.stringify(params));
  },
};
export default getIMteam;
